<template>
  <div class="home-header">
      <div class="header-left" @click="$router.push('/cate')">
        <van-icon size="20" class-prefix="icon" name="fenlei"/>
        <span>分类</span>
      </div>
      <div class="header-right" @click="$router.push('/search')">
        <van-icon class-prefix="icon" name="sousuo"/>
        <span>搜索商品/商铺</span>
      </div>
    </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
.home-header{
  height: 50px;
  background-color: #f66;
  position: fixed;
  left:0;
  top:0;
  width: 100%;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 14px;
  padding-right: 15px;
  box-sizing: border-box;
  z-index: 10;
  .header-left{
    padding: 0 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .header-right{
    height: 30px;
    background-color: rgba(255,255,255,.4);
    flex:1;
    border-radius: 15px;
    line-height: 30px;
    .icon{
      margin:0 8px;
    }
  }
}
</style>
